package com.asktgapp.model;

import com.asktgapp.base.BaseItem;
import com.asktgapp.utils.PinYinUtils;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class PutQuestionsChooseVO extends BaseItem {


    /**
     * Id :
     * TypeName : 湿地挖掘机
     * TypeSort :
     */

    private String Id;
    private String TypeName;
    private String TypeSort;
    /**
     * TypeId :
     * BrandName : string
     * BrandSort :
     */

    private String TypeId;
    private String BrandName;
    private String BrandSort;
    /**
     * BrandId :
     * SeriesName : string
     * SeriesId :
     * Models : [{"Id":"","SeriesId":"","ModelName":"string","ModelSort":""}]
     */
    private int isHot;
    private String BrandId;
    private String SeriesName;
    private String SeriesId;
    private String modelId;
    private String modelName;
    private boolean isPutQuestion;

    private String pinyin;
    //拼音首字母
    private String headerWord;

    public String getPinyin() {

        return this.pinyin = PinYinUtils.getPinyin(BrandName);
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getHeaderWord() {
        this.pinyin = PinYinUtils.getPinyin(BrandName);
        headerWord = pinyin.substring(0, 1);
        return headerWord;
    }

    public void setHeaderWord(String headerWord) {
        this.headerWord = headerWord;
    }
    public int getIsHot() {
        return isHot;
    }

    public void setIsHot(int isHot) {
        this.isHot = isHot;
    }

    public boolean isPutQuestion() {
        return isPutQuestion;
    }

    public void setPutQuestion(boolean putQuestion) {
        isPutQuestion = putQuestion;
    }

    private List<ModelsBean> Models;

    public String getModelId() {
        return modelId == null ? "" : modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getModelName() {
        return modelName == null ? "" : modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    @Override
    public String getId() {
        return Id == null ? "" : Id;
    }

    @Override
    public void setId(String id) {
        Id = id;
    }

    public String getTypeName() {
        return TypeName == null ? "" : TypeName;
    }

    public void setTypeName(String typeName) {
        TypeName = typeName;
    }

    public String getTypeSort() {
        return TypeSort == null ? "" : TypeSort;
    }

    public void setTypeSort(String typeSort) {
        TypeSort = typeSort;
    }


    public String getTypeId() {
        return TypeId == null ? "" : TypeId;
    }

    public void setTypeId(String typeId) {
        TypeId = typeId;
    }

    public String getBrandName() {
        return BrandName == null ? "" : BrandName;
    }

    public void setBrandName(String brandName) {
        BrandName = brandName;
    }

    public String getBrandSort() {
        return BrandSort == null ? "" : BrandSort;
    }

    public void setBrandSort(String brandSort) {
        BrandSort = brandSort;
    }

    public String getBrandId() {
        return BrandId == null ? "" : BrandId;
    }

    public void setBrandId(String brandId) {
        BrandId = brandId;
    }

    public String getSeriesName() {
        return SeriesName == null ? "" : SeriesName;
    }

    public void setSeriesName(String seriesName) {
        SeriesName = seriesName;
    }

    public String getSeriesId() {
        return SeriesId == null ? "" : SeriesId;
    }

    public void setSeriesId(String seriesId) {
        SeriesId = seriesId;
    }

    public List<ModelsBean> getModels() {
        return Models;
    }

    public void setModels(List<ModelsBean> models) {
        Models = models;
    }

    public static class ModelsBean implements Serializable  {
        /**
         * Id :
         * SeriesId :
         * ModelName : string
         * ModelSort :
         */

        @SerializedName("Id")
        private String IdX;
        private String SeriesId;
        private String ModelName;
        private String ModelSort;

        public String getIdX() {
            return IdX;
        }

        public void setIdX(String IdX) {
            this.IdX = IdX;
        }

        public String getSeriesId() {
            return SeriesId;
        }

        public void setSeriesId(String SeriesId) {
            this.SeriesId = SeriesId;
        }

        public String getModelName() {
            return ModelName;
        }

        public void setModelName(String ModelName) {
            this.ModelName = ModelName;
        }

        public String getModelSort() {
            return ModelSort;
        }

        public void setModelSort(String ModelSort) {
            this.ModelSort = ModelSort;
        }
    }
}
